﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CatCampoEstudioRegistro.aspx.cs" Inherits="CLab.PagAdminLab.CatCampoEstudioRegistro" %>
<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src='<%=ResolveUrl("../Scripts/CatCampoEstudioRegistrar.js")%>'></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td class= "tdEtiqueta">
                Campo:
            </td>
            <td class="tdCampo">
                <asp:UpdatePanel Id="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <ganda:TextBox runat="server" ID="txtNombreCampo" Width="250px" cssClass="textbox" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
             <td class= "tdEtiqueta">
                Tipo:
            </td>
            <td class="tdCampo">
                <asp:UpdatePanel Id="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <ganda:DropDownList ID="ddlTipoCampo" runat="server" Width="180px" TabIndex="4" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class= "tdEtiqueta">
                Es requerido:
            </td>
            <td class="tdCampo">
                <asp:UpdatePanel Id="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:CheckBox ID="ChkEsRequerido" runat="server" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td class= "tdEtiqueta">
                Unidad:
            </td>
            <td class="tdCampo">
                <asp:UpdatePanel Id="UpdatePanel5" runat="server">
                    <ContentTemplate>
                        <ganda:TextBox ID="txtUnidad" runat="server" MaxLength="10" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
     <div class="toolBarAcciones">
        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>
                <asp:Button ID="btnGuardar" runat="server" Text="Guardar" CssClass="boton" 
                    onclick="btnGuardar_Click" />&nbsp;
                <asp:Button ID="btnNuevo" runat="server" Text="Nuevo" CssClass="boton" 
                    onclick="btnNuevo_Click" />&nbsp;
                <asp:Button ID="btnRegresar" runat="server" Text="Regresar" CssClass="boton" OnClientClick="return Regresar();" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div style="display:none">
        <asp:HiddenField ID="hdnIdCampo" runat="server" />
    </div>
    <script type="text/javascript">
        var btnGuardar = '<%=btnGuardar.ClientID %>'
        var btnRegresar = '<%=btnRegresar.ClientID %>'
        var btnNuevo = '<%=btnNuevo.ClientID %>'
    </script>
</asp:Content>
